package com.wugh.fast.kernel.core.exception;

import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;

/**
 * 说明: 数据不存在异常
 * <pre>
 *     数据库不存在,或文件不存在均可抛出该异常
 *     {@link com.wugh.fast.kernel.core.enums.FastExceptionEnum#DATA_NOT_EXIST_EXCEPTION}
 * </pre>
 *
 * @author wugh
 * @date 2019-01-25 09:04
 */
public class FastNotExistException extends FastAbstractException {
    public FastNotExistException() {
    }

    public FastNotExistException(String message) {
        super(message);
    }

    public FastNotExistException(String message, Throwable cause) {
        super(message, cause);
    }

    public FastNotExistException(Throwable cause) {
        super(cause);
    }

    public FastNotExistException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.DATA_NOT_EXIST_EXCEPTION;
    }
}
